const Router = require('koa-router')
const router = new Router({
    prefix: '/blog/tag'
});


const { ArtTags } = require('../../models/blog/art_tags');


//获取全部标签
router.get('/', async (ctx,next)=>{
    const res = await ArtTags.findAll({ where:{} })
    ctx.body = {
        data:res,
        msg:'ok'
    }
})

module.exports = router;